package com.designpattern.strategy;

import com.designpattern.strategy.symbol.Add;

public class Main {

    /**
     * 策略模式
     * @param args
     */

    public static void main(String[] args) {

        Add add = new Add();
        Calculator calculator = new Calculator(add);
        Double res = calculator.execute(10d,12d);
        System.out.println(res);
    }
}
